Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoThunks instance for Solo #45

Merged
merged 1 commit into from
Jan 25, 2024
Merged

NoThunks instance for Solo #45

merged 1 commit into from
Jan 25, 2024

Conversation

coot
Copy link
Contributor

@coot coot commented Jan 25, 2024

No description provided.

@coot coot linked an issue Jan 25, 2024 that may be closed by this pull request
@coot coot added this pull request to the merge queue Jan 25, 2024
Merged via the queue into master with commit 1f52032 Jan 25, 2024
7 checks passed
@coot coot deleted the coot/solo branch January 25, 2024 11:03
Comment on lines +516 to +524
#if MIN_VERSION_base(4,16,0)
-- GHC-9.2
instance NoThunks a => NoThunks (Solo a) where
wNoThunks ctx (Solo a) = wNoThunks ("Solo" : ctx) a
#elif MIN_VERSION_base(4,17,0)
-- GHC-9.4 and newer
instance NoThunks a => NoThunks (Solo a) where
wNoThunks ctx (MkSolo a) = wNoThunks ("Solo" : ctx) a
#endif

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be the other way around (first the MIN_VERSION_base(4,17,0) case, then the MIN_VERSION_base(4,16,0) case). Currently, the first case is also picked for GHC 9.4 and newer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add instance for Solo
3 participants